package com.example.springboot0811.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@ConfigurationProperties("myobj")
@Component  //必须有五大类注解其中一个
public class User {
    private int id;
    private String name;
    private int age;
}
